package com.wetao.lib_common.bean.response;

import com.wetao.lib_common.base.Base2Response;
import com.wetao.lib_common.utils.JsonUtils;

/**
 * author: zhouyh
 * created on: 3/8/21 11:25 AM
 * description:
 */
public class AppVersionInfo {

    /**
     * data : {"id":null,"version":null,"dowloadUrl":null,"description":null,"apkSize":null}
     */

    /*private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static AppVersionInfo objectFromData(String str) {

        return (JsonUtils.getmGson()).fromJson(str, AppVersionInfo.class);
    }

    public static class Data {
        *//**
         * id : null
         * version : null
         * dowloadUrl : null
         * description : null
         * apkSize : null
         *//*

        private String id;
        private String version;
        private String downloadUrl;
        private String description;
        private Integer apkSize;

        public static Data objectFromData(String str) {

            return (JsonUtils.getmGson()).fromJson(str, Data.class);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getDownloadUrl() {
            return downloadUrl;
        }

        public void setDownloadUrl(String dowloadUrl) {
            this.downloadUrl = dowloadUrl;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public Integer getApkSize() {
            return apkSize;
        }

        public void setApkSize(Integer apkSize) {
            this.apkSize = apkSize;
        }
    }*/

    private String id;
    private String version;
    private String downloadUrl;
    private String description;
    private Integer apkSize;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getApkSize() {
        return apkSize;
    }

    public void setApkSize(Integer apkSize) {
        this.apkSize = apkSize;
    }

    @Override
    public String toString() {
        return "AppVersionInfo{" +
                "id='" + id + '\'' +
                ", version='" + version + '\'' +
                ", downloadUrl='" + downloadUrl + '\'' +
                ", description='" + description + '\'' +
                ", apkSize=" + apkSize +
                '}';
    }
}
